package com.zscat.mallplus.ums.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zscat.mallplus.utils.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author zscat
 * @since 2019-04-19
 */
@Data
@ApiModel
@TableName("ums_collect")
public class UmsCollect extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Long id;

    /**
     * 会员编号
     */
    @TableField("member_id")
    @ApiModelProperty(hidden = true)
    private Long memberId;

    /**
     * 商品ID
     */
    @TableField("goods_id")
    @ApiModelProperty(value = "商品或文章ID", required = true)
    private Long goodsId;

    /**
     * 商品
     */
    @TableField("goods_name")
    @ApiModelProperty(hidden = true)
    private String goodsName;

    /**
     * 副标题
     */
    @TableField("sub_title")
    @ApiModelProperty(value = "副标题")
    private String subTitle;

    /**
     * 图片
     */
    @TableField("goods_pic")
    @ApiModelProperty(hidden = true)
    private String goodsPic;

    /**
     * 价格
     */
    @TableField("goods_price")
    @ApiModelProperty(hidden = true)
    private String goodsPrice;

    /**
     * 收藏类别：1->商品；2->文章
     */
    @TableField("type")
    @ApiModelProperty(value = "收藏类别：1->商品；2->文章", required = true)
    private Integer type;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @ApiModelProperty(hidden = true)
    private Date createTime;

    /**
     * 科技馆ID
     */
    @TableField("store_id")
    @ApiModelProperty(value = "科技馆ID", required = true)
    private Integer storeId;
}
